import request from '@/utils/request'

// 查询scontent列表
export function listScontent(query) {
  return request({
    url: '/scontent/scontent/list',
    method: 'get',
    params: query
  })
}

// 查询scontent详细
export function getScontent(iId) {
  return request({
    url: '/scontent/scontent/' + iId,
    method: 'get'
  })
}

// 新增scontent
export function addScontent(data) {
  return request({
    url: '/scontent/scontent',
    method: 'post',
    data: data
  })
}

// 修改scontent
export function updateScontent(data) {
  return request({
    url: '/scontent/scontent',
    method: 'put',
    data: data
  })
}

// 删除scontent
export function delScontent(iId) {
  return request({
    url: '/scontent/scontent/' + iId,
    method: 'delete'
  })
}
